new Vue({
    el:'#vue',
    data(){
        return{
            name:'路飞',
            QQ:12345,
            link:'http://www.baidu.com',
            a:`<a href="http://www.baidu.com">百度</a>`,
            age:"",
            red:false
        }
    },
    methods:{
        hello(y){
            console.log(`${y}你好,${this.name}`);
        },
        nihao(y){
            this.hello(y)
        },
        editName(name,e){
            alert(123456)
            this.name=name
            
        },
        logName(e){
            console.log(this.name);
            console.log(e);
        },
        submit(){
            // console.log(this.name,this.age);
            this.name=''
            this.age=''
            console.log(this.$refs.nihai.innerHTML);
        } ,
        edit(){
            this.name='苏'
            this.age=18
        }

    }
}) 